Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add label for differentiating OCP and HyperShift archives #196

Merged
merged 3 commits into from
Apr 17, 2024

Conversation

epapbak
Copy link
Collaborator

@epapbak epapbak commented Apr 15, 2024

Description

The "archive" label allows us to differentiate the type of archive we are handling. Since that information is known only after extracting the archive, the following changes have been implemented:

  • "archive" label was added to StatsWatcher
  • The new label is only used in metrics that are updated after the extraction of the archive:
    • ccx_consumer_extracted_total
    • ccx_engine_processed_total
    • ccx_published_total
    • ccx_failures_total
    • ccx_process_duration_seconds if there was a failure during download or processing of the archive
    • ccx_publish_duration_seconds
    • ccx_engine_processed_timeout_total
  • The label's value is reset to 'ocp' everytime a new archive is received (when on_recv is fired).

Fixes CCXDEV-12520

Type of change

  • New feature (non-breaking change which adds functionality)

Testing steps

Updated UTs

Checklist

  • pre-commit run -a passes
  • updated documentation wherever necessary
  • added or modified tests if necessary
  • updated schemas and validators in insights-data-schemas in case of input/output change

epapbak added 2 commits April 16, 2024 20:12
The "archive" label allows us to differentiate the type of archive
we are handling. Since that information is known only after extracting
the archive, the following changes have been implemented:

  - "archive" label was added to StatsWatcher
  - The new label is only used in metrics that are updated after the
  extraction of the archive:
    - ccx_consumer_extracted_total
    - ccx_engine_processed_total
    - ccx_published_total
    - ccx_failures_total
    - ccx_download_duration_seconds and ccx_process_duration_seconds if
      there was a failure during download or processing of the archive
    - ccx_publish_duration_seconds
    - ccx_engine_processed_timeout_total
  - The label's value is reset to 'ocp' everytime a new archive is
    received (when `on_recv` is fired).
@codecov-commenter
Copy link

codecov-commenter commented Apr 16, 2024

Codecov Report

Attention: Patch coverage is 87.50000% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 84.69%. Comparing base (f2f7aa7) to head (7b685f7).

Files Patch % Lines
ccx_messaging/watchers/stats_watcher.py 87.50% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #196      +/-   ##
==========================================
- Coverage   84.73%   84.69%   -0.05%     
==========================================
  Files          33       33              
  Lines        1055     1078      +23     
==========================================
+ Hits          894      913      +19     
- Misses        161      165       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@epapbak epapbak force-pushed the CCXDEV-12520 branch 2 times, most recently from ab579a5 to 7b685f7 Compare April 16, 2024 18:44
@epapbak epapbak marked this pull request as ready for review April 17, 2024 07:14
@epapbak epapbak merged commit 01d71d5 into RedHatInsights:main Apr 17, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants